package com.pams.mapper;


import com.pams.pojo.entity.Note;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NoteMapper {
    void insert(Note note);

    List<Note> getlist(String username);

    Note getById(int id);

    void update(Note note);

    void delete(int id);

    List<Note> search(String currentUsername,String title);
}
